#{extends 'layout.html' /}
#{set title:messages.get('crud.list.title', '图片资源') /}
<div id="crudList" class="">
    <div id="crudListSearch">
    </div>
    <div id="crudListTable">
      <table>
                <thead>
			      <tr>
			      	<th>图片展示</th>
			        <th>图片名称</th>
			        <th>图片路径</th>
			        <th>图片描述</th>
			      </tr>
			      </thead>
   		#{list items:picList,as:'pic'}
	   		<tr>
	   			<td width="10%">
	   			<a href="@{show(pic.id)}"><img src="${pic.picPath}" width="40" height="30"></a>
	   			<a href="@{deletePic(pic.id)}"><img src="@{'/public/images/dele.jpg'}" width="10" height="10" onclick=" return confirm('确定要删除这条数据吗 ？') "></a>
	   			</td>
	   			<td style="display:none">${pic.id}</td>
		   		<td>${pic.picName}</td>
		   		<td>${pic.picPath}</td>
		   		<td>${pic.picDis}</td>
	   		</tr>
   		#{/list}
     </table>
    </div>
     <p id="crudListAdd">
	        <a href="@{blank()}">上传图片</a>
	 </p>
    
</div>
